package com.neu.credit.creditscore.entity.books;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;

import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("book_return_fees")
@Schema(name = "BookReturnFees", description = "图书归还费用表，记录逾期费用信息")
public class BookReturnFees {

    //借阅费用待支付
    public final static int PAY_STATUS_WAIT_PAY = 0;
    //借阅费用已支付
    public final static int PAY_STATUS_BORROW_HAS_PAY = 1;
    //逾期费用未支付
    public final static int PAY_STATUS_WAIT_OVERDUE = 2;
    public final static int PAY_STATUS = 3;
    //支付完成
    public final static int PAY_STATUS_DONE = 4;

    @Schema(description = "费用ID，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "借阅ID")
    private Integer borrowingId;

    @Schema(description = "逾期天数")
    private Integer overdueDays;

    @Schema(description = "逾期费用")
    private BigDecimal overdueFee;

    @Schema(description = "总费用")
    private BigDecimal totalFee;

    @Schema(description = "支付状态 0-借阅费用待支付，1-借阅费用已支付，2-逾期费用未支付，3-逾期费用部分支付，4-支付已完成")
    private Integer paymentStatus;

    @Schema(description = "创建时间")
    private Date createdAt;

    @Schema(description = "更新时间")
    private Date updatedAt;
}